package com.cntcdt.api.service.impl;

import java.util.List;

import com.cntcdt.api.db.dao.ShopPicDao;
import com.cntcdt.api.db.model.ShopPicModel;
import com.cntcdt.api.service.ShopPicService;

public class ShopPicServiceImpl implements ShopPicService {

	@Override
	public List<ShopPicModel> findByShopId(int shopId) {
		return ShopPicDao.getInstance().findByShopId(shopId);
	}

	@Override
	public int insetModel(ShopPicModel shopPic) {
		return ShopPicDao.getInstance().insert(shopPic);
	}

	@Override
	public boolean updateModel(ShopPicModel shopPic) {
		return ShopPicDao.getInstance().update(shopPic);
	}

}
